package com.uw.scenic;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;


/**
 * 模板微服务的启动入口
 */
@EnableCircuitBreaker //熔断降级功能
@EnableScheduling   //开启定时任务
@EnableFeignClients //通过feign调用其他微服务
@EnableEurekaClient
@SpringBootApplication
@MapperScan("com.uw.scenic.mapper")   //对mapper的扫描
public class UserApplication {

	public static void main(String[] args) {
		SpringApplication.run(UserApplication.class,args);
	}

}
